<%@ Page Language="C#" MasterPageFile="~/master/public-regular.master" AutoEventWireup="true"
    CodeFile="edit-profile.aspx.cs" Inherits="myaccount_edit_profile" %>

<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register Src="~/controls/wucValidator.ascx" TagName="Validator" TagPrefix="wuc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderNestedHeader"
    runat="Server">
    <link href="<%= SiteGlobals.BaseUrl %>App_Style/css/admin.css" rel="stylesheet" type="text/css" />
    <script src="<%= SiteGlobals.BaseUrl %>javascript/jquery.min.js" type="text/javascript"></script>
    <script src="<%= SiteGlobals.BaseUrl %>javascript/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../javascript/datetime/jquery.ui.datepicker.js" type="text/javascript"></script>
    <link href="../javascript/datetime/jquery-ui-1.8.8.custom.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="cntContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <div class="admin-function-top user-home-2">
        <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
            ValidationGroup="vGroup" DisplayMode="BulletList" ShowMessageBox="true" HeaderText="Please correct the following:"
            CssClass="adminValidator" ShowSummary="False" />
        <div class="form-edit-profile-left">
            <fieldset>
                <legend>Personal Details </legend>
                <label>
                    First Name</label>
                <asp:TextBox ID="tbxPersonalFirstName" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPersonalFirstName" runat="server" ControlToValidate="tbxPersonalFirstName"
                    ErrorMessage="First Name is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revFirstName" ControlToValidate="tbxPersonalFirstName"
                    EnableClientScript="true" ErrorMessage="Incorrect Text Format" SetFocusOnError="true"
                    ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$" ValidationGroup="vGroup">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Last Name</label>
                <asp:TextBox ID="tbxPersonalLastName" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPersonalLastName" runat="server" ControlToValidate="tbxPersonalLastName"
                    ErrorMessage="Last Name is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revPersonalLastName" ControlToValidate="tbxPersonalLastName"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Name Format"
                    SetFocusOnError="true" ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Date of Birth
                </label>
            
                <asp:TextBox ID="tbxPersonalDateOfBirth" runat="server" CssClass="text" Width="275px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPersonalDateOfBirth" runat="server" ControlToValidate="tbxPersonalDateOfBirth"
                    ErrorMessage="Date of Birth is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revPersonalDateOfBirth" ControlToValidate="tbxPersonalDateOfBirth"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Date of Birth Format"
                    SetFocusOnError="true" ValidationExpression="^(0[1-9]|1[0-2])/(0[1-9]|[1-2][0-9]|3[01])/([1-9][0-9][0-9][0-9])$">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Email Address</label>
                <asp:TextBox ID="tbxPersonalEmailAddress" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPersonalEmailAddress" runat="server" ControlToValidate="tbxPersonalEmailAddress"
                    ErrorMessage="Email Address is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revPersonalEmailAddress" ControlToValidate="tbxPersonalEmailAddress"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Email Format"
                    SetFocusOnError="true" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Gender</label>
                <asp:RadioButton ID="rbtMale" runat="server" GroupName="rbtGender" Checked="True" />
                <label>
                    Male</label>
                <asp:RadioButton ID="rbtFemale" runat="server" GroupName="rbtGender" />
                <label>
                    Female</label>
            </fieldset>
            <br />
            <fieldset>
                <legend>Billing Address</legend>
                <label>
                    First Name</label>
                <asp:TextBox ID="tbxBillingFirstName" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvBillingFirstName" runat="server" ControlToValidate="tbxBillingFirstName"
                    ErrorMessage="Billing Address First Name is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revBillingFirstName" ControlToValidate="tbxBillingFirstName"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Name Format"
                    SetFocusOnError="true" ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Last Name</label>
                <asp:TextBox ID="tbxBillingLastName" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvBillingLastName" runat="server" ControlToValidate="tbxBillingLastName"
                    ErrorMessage="Billing Address Last Name is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revBillingLastName" ControlToValidate="tbxBillingLastName"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Name Format"
                    SetFocusOnError="true" ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Address Line 1</label>
                <asp:TextBox ID="tbxBillingAddressLine1" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvBillingAddressLine1" runat="server" ControlToValidate="tbxBillingAddressLine1"
                    ErrorMessage="Billing Address Line 1 is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <br />
                <label>
                    Address Line 2</label>
                <asp:TextBox ID="tbxBillingAddressLine2" runat="server" CssClass="text"></asp:TextBox>
                <br />
                <label>
                    City</label>
                <asp:TextBox ID="tbxBillingCity" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvBillingCity" runat="server" ControlToValidate="tbxBillingCity"
                    ErrorMessage="Billing Address City is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <br />
                <label>
                    State</label>
                <ucc:StateDropDownList ID="uccBillingState" runat="server" UseFirstItem="true" CssClass="input1"
                    Style="width: 155px; background-color: rgb(255, 255, 160);" FirstItemText="None / Other"
                    FirstItemValue="NA">
                </ucc:StateDropDownList>
                <asp:RequiredFieldValidator ID="rfvBillingState" runat="server" ControlToValidate="uccBillingState"
                    ErrorMessage="Billing Address State is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <br />
                <label>
                    Zip Code</label>
                <asp:TextBox ID="tbxBillingZipCode" runat="server" CssClass="text" Width="52px" MaxLength="5"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvBillingZipCode" runat="server" ControlToValidate="tbxBillingZipCode"
                    ErrorMessage="Billing Address Zip Code is required" Display="dynamic" SetFocusOnError="true">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revBillingZipCode" ControlToValidate="tbxBillingZipCode"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Name Format"
                    SetFocusOnError="true" ValidationExpression="^\d{5}$">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Country</label>
                <ucc:CountryDropDownList ID="uccBillingCountry" CssClass="input1" runat="server"
                    Style="width: 155px; background-color: rgb(255, 255, 160);">
                </ucc:CountryDropDownList>
                <asp:RequiredFieldValidator ID="rfvBillingCountry" runat="server" ControlToValidate="uccBillingCountry"
                    ErrorMessage="Billing Address Country is required" Display="dynamic" SetFocusOnError="true">
                </asp:RequiredFieldValidator>
                <br />
                <label>
                    Email Address</label>
                <asp:TextBox ID="tbxBillingEmailAddress" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvBillingEmailAddress" runat="server" ControlToValidate="tbxBillingEmailAddress"
                    ErrorMessage="Email Address is required" Display="dynamic" SetFocusOnError="true"
                    ValidationGroup="vGroup" EnableClientScript="true">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revBillingEmailAddress" ControlToValidate="tbxBillingEmailAddress"
                    EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
                    ValidationGroup="vGroup" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Telephone Number</label>
                <asp:TextBox ID="tbxBillingPhoneNumber" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvBillingPhoneNumber" runat="server" ControlToValidate="tbxBillingPhoneNumber"
                    ErrorMessage="Billing Telephone Number is required" Display="dynamic" SetFocusOnError="true"
                    ValidationGroup="vGroup" EnableClientScript="true">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revBillingPhoneNumber" ControlToValidate="tbxBillingPhoneNumber"
                    EnableClientScript="true" ErrorMessage="Incorrect Phone Format" SetFocusOnError="true"
                    ValidationGroup="vGroup" ValidationExpression="^\d{3}-\d{3}-\d{4}$">
                </asp:RegularExpressionValidator>
            </fieldset>
        </div>
        <div class="form-edit-profile-right">
            <fieldset>
                <legend>Company Information </legend>
                <label>
                    Company Name</label>
                <asp:TextBox ID="tbxCompanyName" runat="server" CssClass="text"></asp:TextBox>
                <br />
                <label>
                    Telephone Number</label>
                <asp:TextBox ID="tbxCompanyPhoneNumber" runat="server" CssClass="text"></asp:TextBox>
                <br />
                <label>
                    Fax Number</label>
                <asp:TextBox ID="tbxCompanyFaxNumber" runat="server" CssClass="text"></asp:TextBox>
            </fieldset>
            <br />
            <fieldset>
                <legend>Contact Information</legend>
                <label>
                    Telephone Number</label>
                <asp:TextBox ID="tbxContactPhoneNumber" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvContactPhoneNumber" runat="server" ControlToValidate="tbxContactPhoneNumber"
                    ErrorMessage="Contact Telephone Number is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revContactPhoneNumber" ControlToValidate="tbxContactPhoneNumber"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Phone Format"
                    SetFocusOnError="true" ValidationExpression="^\d{3}-\d{3}-\d{4}$">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Fax Number</label>
                <asp:TextBox ID="tbxContactFaxNumber" runat="server" CssClass="text"></asp:TextBox>
            </fieldset>
            <br />
            <fieldset>
                <legend>Shipping Address</legend>
                <input type="checkbox" id="cbxCopyBillingInfo" onclick="javascript:CopyBillingInfo()" />Shipping
                same as Billing
                <br />
                <label>
                    First Name</label>
                <asp:TextBox ID="tbxShippingFirstName" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvShippingFirstName" runat="server" ControlToValidate="tbxShippingFirstName"
                    ErrorMessage="Shipping Address First Name is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revShippingFirstName" ControlToValidate="tbxShippingFirstName"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Name Format"
                    SetFocusOnError="true" ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Last Name</label>
                <asp:TextBox ID="tbxShippingLastName" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvShippingLastName" runat="server" ControlToValidate="tbxShippingLastName"
                    ErrorMessage="Shipping Address Last Name is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revShippingLastName" ControlToValidate="tbxShippingLastName"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Name Format"
                    SetFocusOnError="true" ValidationExpression="^([a-zA-Z])+?(([- .])*?([a-zA-Z])*)*$">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Address Line 1</label>
                <asp:TextBox ID="tbxShippingAddressLine1" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvShippingAddressLine1" runat="server" ControlToValidate="tbxShippingAddressLine1"
                    ErrorMessage="Shipping Address Line 1 is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <br />
                <label>
                    Address Line 2</label>
                <asp:TextBox ID="tbxShippingAddressLine2" runat="server" CssClass="text"></asp:TextBox>
                <br />
                <label>
                    City</label>
                <asp:TextBox ID="tbxShippingCity" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvShippingCity" runat="server" ControlToValidate="tbxShippingCity"
                    ErrorMessage="Shipping Address City is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <br />
                <label>
                    State</label>
                <ucc:StateDropDownList ID="uccShippingState" runat="server" UseFirstItem="true" CssClass="input1"
                    Style="width: 155px; background-color: rgb(255, 255, 160);" FirstItemText="None / Other"
                    FirstItemValue="NA">
                </ucc:StateDropDownList>
                <asp:RequiredFieldValidator ID="rfvShippingState" runat="server" ControlToValidate="uccShippingState"
                    ErrorMessage="Shipping Address State is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <br />
                <label>
                    Zip Code</label>
                <asp:TextBox ID="tbxShippingZipCode" runat="server" CssClass="text" size="5"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvShippingZipCode" runat="server" ControlToValidate="tbxShippingZipCode"
                    ErrorMessage="Shipping Address Zip Code is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revShippingZipCode" ControlToValidate="tbxShippingZipCode"
                    EnableClientScript="true" ValidationGroup="vGroup" ErrorMessage="Incorrect Name Format"
                    SetFocusOnError="true" ValidationExpression="^\d{5}$">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Country</label>
                <ucc:CountryDropDownList ID="uccShippingCountry" CssClass="input1" runat="server"
                    Style="width: 155px; background-color: rgb(255, 255, 160);">
                </ucc:CountryDropDownList>
                <asp:RequiredFieldValidator ID="rfvShippingCountry" runat="server" ControlToValidate="uccShippingCountry"
                    ErrorMessage="Shipping Address Country is required" Display="dynamic" SetFocusOnError="true"
                    EnableClientScript="true" ValidationGroup="vGroup">
                </asp:RequiredFieldValidator>
                <br />
                <label>
                    Email Address</label>
                <asp:TextBox ID="tbxShippingEmailAddress" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvShippingEmailAddress" runat="server" ControlToValidate="tbxShippingEmailAddress"
                    ErrorMessage="Email Address is required" Display="dynamic" SetFocusOnError="true"
                    ValidationGroup="vGroup" EnableClientScript="true">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revShippingEmailAddress" ControlToValidate="tbxShippingEmailAddress"
                    EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
                    ValidationGroup="vGroup" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                </asp:RegularExpressionValidator>
                <br />
                <label>
                    Telephone Number</label>
                <asp:TextBox ID="tbxShippingPhoneNumber" runat="server" CssClass="text"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvShippingPhoneNumber" runat="server" ControlToValidate="tbxShippingPhoneNumber"
                    ErrorMessage="Shipping Telephone Number is required" Display="dynamic" SetFocusOnError="true"
                    ValidationGroup="vGroup" EnableClientScript="true">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revShippingPhoneNumber" ControlToValidate="tbxShippingPhoneNumber"
                    EnableClientScript="true" ErrorMessage="Incorrect Phone Format" SetFocusOnError="true"
                    ValidationGroup="vGroup" ValidationExpression="^\d{3}-\d{3}-\d{4}$">
                </asp:RegularExpressionValidator>
                <br />
                <asp:Button ID="imbModify" runat="server" ValidationGroup="vGroup" AlternateText="Modify"
                    CausesValidation="true" OnClick="imbModify_Click" CssClass="button medium red" Text="Modify" />
                <asp:Button ID="imbReset" runat="server" AlternateText="Reset" CssClass="button medium gray"
                    Text="Reset" CausesValidation="false" OnClientClick="javascript:ResetFields();return false;" />
                
            </fieldset>
        </div>
        <br class="clear" />
    </div>
    <script language="javascript" type="text/javascript">
        function ResetFields() {
            $('<%= tbxPersonalFirstName.ClientID %>').value = '';
            $('<%= tbxPersonalLastName.ClientID %>').value = '';
            $('<%= tbxPersonalDateOfBirth.ClientID %>').value = '';
            $('<%= tbxPersonalEmailAddress.ClientID %>').value = '';
            $('<%= tbxContactPhoneNumber.ClientID %>').value = '';
            $('<%= tbxContactFaxNumber.ClientID %>').value = '';
            $('<%= tbxCompanyName.ClientID %>').value = '';
            $('<%= tbxCompanyPhoneNumber.ClientID %>').value = '';
            $('<%= tbxCompanyFaxNumber.ClientID %>').value = '';
            $('<%= tbxBillingFirstName.ClientID %>').value = '';
            $('<%= tbxBillingLastName.ClientID %>').value = '';
            $('<%= tbxBillingAddressLine1.ClientID %>').value = '';
            $('<%= tbxBillingAddressLine2.ClientID %>').value = '';
            $('<%= tbxBillingCity.ClientID %>').value = '';
            $('<%= tbxBillingZipCode.ClientID %>').value = '';
            $('<%= tbxBillingPhoneNumber.ClientID %>').value = '';
            $('<%= tbxBillingEmailAddress.ClientID %>').value = '';
            $('<%= tbxShippingFirstName.ClientID %>').value = '';
            $('<%= tbxShippingLastName.ClientID %>').value = '';
            $('<%= tbxShippingAddressLine1.ClientID %>').value = '';
            $('<%= tbxShippingAddressLine2.ClientID %>').value = '';
            $('<%= tbxShippingCity.ClientID %>').value = '';
            $('<%= tbxShippingZipCode.ClientID %>').value = '';
            $('<%= tbxShippingPhoneNumber.ClientID %>').value = '';
            $('<%= tbxShippingEmailAddress.ClientID %>').value = '';
            $('<%=uccBillingState.ClientID%>').options[0].selected = true;
            $('<%=uccBillingCountry.ClientID%>').options[0].selected = true;
            $('<%=uccShippingState.ClientID%>').options[0].selected = true;
            $('<%=uccShippingCountry.ClientID%>').options[0].selected = true;
            $('cbxCopyBillingInfo').checked = false;
        }

        function CopyBillingInfo() {
            if ($("#cbxCopyBillingInfo").attr('checked')) {
                $("#<%= tbxShippingFirstName.ClientID %>").val($("#<%= tbxBillingFirstName.ClientID %>").val());
                $("#<%= tbxShippingLastName.ClientID %>").val($("#<%= tbxBillingLastName.ClientID %>").val());
                $("#<%= tbxShippingPhoneNumber.ClientID %>").val($("#<%= tbxBillingPhoneNumber.ClientID %>").val());
                $("#<%= tbxShippingEmailAddress.ClientID %>").val($("#<%= tbxBillingEmailAddress.ClientID %>").val());
                $("#<%= tbxShippingAddressLine1.ClientID %>").val($("#<%= tbxBillingAddressLine1.ClientID %>").val());
                $("#<%= tbxShippingAddressLine2.ClientID %>").val($("#<%= tbxBillingAddressLine2.ClientID %>").val());
                $("#<%= tbxShippingCity.ClientID %>").val($("#<%= tbxBillingCity.ClientID %>").val());
                $("#<%= tbxShippingZipCode.ClientID %>").val($("#<%= tbxBillingZipCode.ClientID %>").val());
                $("#<%=uccShippingState.ClientID%>").val($("#<%=uccBillingState.ClientID%>").val());
                $("#<%=uccShippingCountry.ClientID%>").val($("#<%=uccBillingCountry.ClientID%>").val());
            }
            else {
                $("#<%= tbxShippingFirstName.ClientID %>").val('');
                $("#<%= tbxShippingLastName.ClientID %>").val('');
                $("#<%= tbxShippingPhoneNumber.ClientID %>").val('');
                $("#<%= tbxShippingEmailAddress.ClientID %>").val('');
                $("#<%= tbxShippingAddressLine1.ClientID %>").val('');
                $("#<%= tbxShippingAddressLine2.ClientID %>").val('');
                $("#<%= tbxShippingCity.ClientID %>").val('');
                $("#<%= tbxShippingZipCode.ClientID %>").val('');
                $("#<%=uccShippingState.ClientID%>").val('');
                $("#<%=uccShippingCountry.ClientID%>").val('');
            }
        }
    </script>
    <script type="text/javascript">
        $(function () {
            $("#<%= tbxPersonalDateOfBirth.ClientID %>").datepicker({
                changeMonth: true,
                changeYear: true
            });
        });
    </script>
</asp:Content>
